/*
 * PrettyTime is an OpenSource Java time comparison library for creating human
 * readable time.
 * 
 * Copyright (C) 2009 - Lincoln Baxter, III <lincoln@ocpsoft.com>
 * 
 * This program is free software: you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation, either version 3 of the License, or (at your option) any
 * later version.
 * 
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 * 
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program. If not, see the file COPYING.LESSER3 or visit the
 * GNU website at <http://www.gnu.org/licenses/>.
 */
package com.ocpsoft.pretty.time.units;

import com.ocpsoft.pretty.time.BasicTimeFormat;
import com.ocpsoft.pretty.time.TimeFormat;
import com.ocpsoft.pretty.time.TimeUnit;
import com.ocpsoft.pretty.time.i18n.I18N;

public class Millisecond implements TimeUnit
{
    private TimeFormat format = new BasicTimeFormat();
    private final long millisPerUnit = 1;
    private long maxQuantity = 0;

    public TimeFormat getFormat()
    {
        return format;
    }

    public long getMaxQuantity()
    {
        return maxQuantity;
    }

    public long getMillisPerUnit()
    {
        return millisPerUnit;
    }

    public String getNameKey()
    {
        return I18N.KEY_MILLISECOND;
    }

    public String getPluralNameKey()
    {
        return I18N.KEY_MILLISECONDS;
    }

    public void setFormat(final TimeFormat format)
    {
        this.format = format;
    }

    public void setMaxQuantity(final long maxQuantity)
    {
        this.maxQuantity = maxQuantity;
    }
}
